package com.ex02.ylw;

import com.util.BufferSize;
import com.util.Resource;
import com.util.WrapperUtil;

import javax.servlet.ServletOutputStream;
import javax.servlet.ServletResponse;
import java.io.*;
import java.util.Locale;

public class ResponseWrapper implements ServletResponse {
    private Response response;

    public ResponseWrapper(Response response) {
        this.response = response;
    }

    public void reset() {
        this.response.reset();
    }

    public void flushBuffer() throws IOException {
        this.response.flushBuffer();
    }

    public void setContentLength(int arg0) {
        this.response.setContentLength(arg0);
    }

    public void setContentType(String arg0) {
        this.response.setContentType(arg0);
    }

    public ServletOutputStream getOutputStream() throws IOException {
        return this.response.getOutputStream();
    }

    public PrintWriter getWriter() throws IOException {
        return this.response.getWriter();
    }

    public void setBufferSize(int arg0) {
        this.response.setBufferSize(arg0);
    }

    public int getBufferSize() {
        return this.response.getBufferSize();
    }

    public void resetBuffer() {
        this.response.resetBuffer();
    }

    public boolean isCommitted() {
        return this.response.isCommitted();
    }

    public void setLocale(Locale arg0) {
        this.response.setLocale(arg0);
    }

    public Locale getLocale() {
        return this.response.getLocale();
    }

    public String getCharacterEncoding() {
        return this.response.getCharacterEncoding();
    }
}
